package com.agencia.ws.cliente;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;

/**
 * <p>
 * Java class for vueloWs complex type.
 * 
 * <p>
 * The following schema fragment specifies the expected content contained within
 * this class.
 * 
 * <pre>
 * &lt;complexType name=&quot;vueloWs&quot;&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
 *       &lt;sequence&gt;
 *         &lt;element name=&quot;asientos&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}int&quot; maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;/&gt;
 *         &lt;element name=&quot;fechaLlegada&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}dateTime&quot; minOccurs=&quot;0&quot;/&gt;
 *         &lt;element name=&quot;fechaPartida&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}dateTime&quot; minOccurs=&quot;0&quot;/&gt;
 *         &lt;element name=&quot;nroVuelo&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot; minOccurs=&quot;0&quot;/&gt;
 *         &lt;element name=&quot;precio&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}double&quot;/&gt;
 *       &lt;/sequence&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "vueloWs", propOrder = { "asientos", "fechaLlegada",
		"fechaPartida", "nroVuelo", "precio" })
public class VueloWs {

	@XmlElement(nillable = true)
	protected List<Integer> asientos;
	@XmlSchemaType(name = "dateTime")
	protected XMLGregorianCalendar fechaLlegada;
	@XmlSchemaType(name = "dateTime")
	protected XMLGregorianCalendar fechaPartida;
	protected String nroVuelo;
	protected double precio;

	/**
	 * Gets the value of the asientos property.
	 * 
	 * <p>
	 * This accessor method returns a reference to the live list, not a
	 * snapshot. Therefore any modification you make to the returned list will
	 * be present inside the JAXB object. This is why there is not a
	 * <CODE>set</CODE> method for the asientos property.
	 * 
	 * <p>
	 * For example, to add a new item, do as follows:
	 * 
	 * <pre>
	 * getAsientos().add(newItem);
	 * </pre>
	 * 
	 * 
	 * <p>
	 * Objects of the following type(s) are allowed in the list {@link Integer }
	 * 
	 * 
	 */
	public List<Integer> getAsientos() {
		if (asientos == null) {
			asientos = new ArrayList<Integer>();
		}
		return this.asientos;
	}

	/**
	 * Gets the value of the fechaLlegada property.
	 * 
	 * @return possible object is {@link XMLGregorianCalendar }
	 * 
	 */
	public XMLGregorianCalendar getFechaLlegada() {
		return fechaLlegada;
	}

	/**
	 * Sets the value of the fechaLlegada property.
	 * 
	 * @param value
	 *            allowed object is {@link XMLGregorianCalendar }
	 * 
	 */
	public void setFechaLlegada(XMLGregorianCalendar value) {
		this.fechaLlegada = value;
	}

	/**
	 * Gets the value of the fechaPartida property.
	 * 
	 * @return possible object is {@link XMLGregorianCalendar }
	 * 
	 */
	public XMLGregorianCalendar getFechaPartida() {
		return fechaPartida;
	}

	/**
	 * Sets the value of the fechaPartida property.
	 * 
	 * @param value
	 *            allowed object is {@link XMLGregorianCalendar }
	 * 
	 */
	public void setFechaPartida(XMLGregorianCalendar value) {
		this.fechaPartida = value;
	}

	/**
	 * Gets the value of the nroVuelo property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getNroVuelo() {
		return nroVuelo;
	}

	/**
	 * Sets the value of the nroVuelo property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setNroVuelo(String value) {
		this.nroVuelo = value;
	}

	/**
	 * Gets the value of the precio property.
	 * 
	 */
	public double getPrecio() {
		return precio;
	}

	/**
	 * Sets the value of the precio property.
	 * 
	 */
	public void setPrecio(double value) {
		this.precio = value;
	}

	public String toString(){
		
		return this.getNroVuelo() + "/ Sale: " + this.getFechaPartida().toString() + "/ Llega: " + this.getFechaLlegada().toString();
	}
}
